<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
  String xm = this.getServletContext().getInitParameter("path");
	String path1 = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/"+xm;
%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

	<title>修改项目</title>
	<base target="_self" />

<link href="<%=path1%>/ht/Styles/css.css"
	rel="stylesheet" type="text/css" />
<link href="<%=path1%>/ht/Styles/ts_css.css"
	rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="<%=path1%>/scripts/My97DatePicker/WdatePicker.js"></script>
    <script src="<%=path1%>/ht/Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="<%=path1%>/ht/Scripts/IndexManager.js" type="text/javascript"></script>

	<script type="text/javascript">
	  function breaks(){
		  window.location.href="<%=path1%>/qt/ht/project/selectAll.do";
		}
	</script>
</head>
<body>
	<form method="post" action="<%=path1%>/qt/ht/project/updateProject.do" id="form1">
		<div id="divTwo">
			<table width="100%" border="0" cellpadding="2" cellspacing="2"
				class="table_list1">
				<tr>
					<td width="40%" class="table_list1_style1">
						<p></p>
					</td>
					<td width="60%" class="table_list1_style2"></td>
				</tr>

				<tr>
					<td width="20%" class="table_list1_style1">
						<p></p> <span style="color: Red">*</span> 项目名称:
					</td>
					<td width="50%" class="table_list1_style2"><input
						name="project_name" id="project_name" type="text" id="txtLeved"
						value="${projectById.project_name}" class="aspNetDisabled"
						style="width: 200px; height: 18px" /></td>
				</tr>

                  <tr>
					<td width="20%" class="table_list1_style1">
						<p></p> <span style="color: Red">*</span> 产品类型:
					</td>
					<td width="50%" class="table_list1_style2"><select
						name="product_type" id="product_type" type="text" id="txtLeved"
						value="${projectById.product_type}" class="aspNetDisabled"
						style="width: 200px; height: 18px" >
						 <option value="${projectById.product_type}">${projectById.product_type}</option>
						 <option  value="住宅">住宅</option>
						 <option  value="商业">商业</option>
						 <option  value="产房">产房</option>
						 <option  value="配套">配套</option>
						 <option  value="公共建筑">公共建筑</option>
						</select>
						</td>
				</tr>

				<tr>
					<td width="20%" class="table_list1_style1">
						<p></p> <span style="color: Red">*</span> 开始时间:
					</td>
					<td width="50%" class="table_list1_style2"><input
						name="start_time" id="start_time" type="text" id="txtLeved"
						value="${projectById.start_time}" 
						style="width: 200px; height: 18px" class="Wdate" onclick="WdatePicker();"/></td>
				</tr>
				
				<input name="project_id" id="project_id" type="hidden" 
						value="${projectById.project_id}"/>
			

				<tr>
					<td width="20%" class="table_list1_style1">
						<p></p> <span style="color: Red">*</span> 结束时间:
					</td>
					<td width="50%" class="table_list1_style2"><input
						name="end_time" id="end_time" type="text" id="txtLeved"
						value="${projectById.end_time}" 
						style="width: 200px; height: 18px" class="Wdate" onclick="WdatePicker();"/></td>
				</tr>

  							<c:choose>
              <c:when test="${bean.tel=='admin'}">
				<tr>
					<td width="10%" class="table_list1_style1">
					 	 <p></p> <span style="color: Red">*</span> 负责人: 
					</td>
					<td width="10%" class="table_list1_style2">
					<select type="text" name="tel" id="tel" style="width: 140px;"
					 value="${projectById.tel}" selected="selected">
					<c:forEach items="${projectBy}" var="a">
					<option value="${a.tel}">${a.tel}</option>
					</c:forEach>
					</select>
					</td>
				</tr>
               </c:when>
               <c:otherwise>
                  <input type="hidden"name="tel" id="tel"value="${projectById.tel}"/>
               </c:otherwise>
              </c:choose>

					<!-- 修改人（隐藏）：登录人本身  所以取登录session里的name就好  -->
					<input type="hidden" name="update_user" id="update_user" value="${bean.name}" /> 
				<tr>
					<td width="20%" class="table_list1_style1">
					</td>
					<td width="50%" class="table_list1_style2"><input type="hidden"
						name="update_time" id="update_time"
						value="${projectById.update_time}"
						style="width: 200px; height: 24px" /></td>
				</tr>
				
                <tr>
					<td width="20%" class="table_list1_style1">
						<p></p> <span style="color: Red">*</span> 状态:
					</td>
					<td width="50%" class="table_list1_style2"><select
						name="state" id="state" type="text" id="txtLeved"
						value="${projectById.state}" class="aspNetDisabled"
						style="width: 200px; height: 18px" >
						<option value="${projectById.state}" selected="selected">${projectById.state}</option>
						<option value="待建">待建</option>
						<option value="在建">在建</option>
						<option value="完成">完成</option>
						</select>
						</td>
				</tr>
				<tr>
					<td width="20%" class="table_list1_style1">
						<p></p>  备注:
					</td>
					<td width="50%" class="table_list1_style2"><input type="text"
					value="${projectById.remark}"	name="remark" id="remark" style="width: 200px; height: 24px" /></td>
				</tr>


				<tr>
					<td class="table_list1_style1">&nbsp;</td>
					<td class="table_list1_style2">
						<p></p> <input type="submit" id="send" name="btnAdd" value="修改"
						tabindex="1" class="button" /> &nbsp;&nbsp; <input
						id="btnBack" type="button" class="button" value="关闭"
						onclick="breaks()" />
					</td>
				</tr>
			</table>
		</div>
	</form>
	</body>
	</html>